home *** CD-ROM | disk | FTP | other *** search
/ SVM Mac 58 / CD-ROM N°58.iso / navigateurs / Netscape Folder / chrome / messengercompose / content / default / messengercompose.xul < prev    next >
Encoding:
Extensible Markup Language  |  2000-04-19  |  23.0 KB  |  488 lines  |  [TEXT/MOSS]

  1. <?xml version="1.0"?> 
  2. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  3. <?xul-overlay href="chrome://global/content/tasksOverlay.xul"?>
  4. <?xul-overlay href="chrome://messengercompose/content/addressingWidgetOverlay.xul"?>
  5. <?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
  6.  
  7. <?xml-stylesheet href="chrome://messengercompose/skin/" type="text/css"?> 
  8.  
  9. <!--
  10. The contents of this file are subject to the Netscape Public
  11. License Version 1.1 (the "License"); you may not use this file
  12. except in compliance with the License. You may obtain a copy of
  13. the License at http://www.mozilla.org/NPL/
  14.  
  15. Software distributed under the License is distributed on an "AS
  16. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  17. implied. See the License for the specific language governing
  18. rights and limitations under the License.
  19.  
  20. The Original Code is Mozilla Communicator client code, released
  21. March 31, 1998.
  22.  
  23. The Initial Developer of the Original Code is Netscape
  24. Communications Corporation. Portions created by Netscape are
  25. Copyright (C) 1998-1999 Netscape Communications Corporation. All
  26. Rights Reserved.
  27. -->
  28.  
  29. <!DOCTYPE window SYSTEM "chrome://messengercompose/locale/messengercompose.dtd">
  30.  
  31. <window xmlns:html="http://www.w3.org/TR/REC-html40"
  32.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  33.         xmlns:nc="http://home.netscape.com/NC-rdf#"
  34.         onunload="ComposeUnload()"
  35.         onload="ComposeLoad()"
  36.         width="640" height="480"
  37.         title="&msgComposeWindow.title;"
  38.         align="vertical"> 
  39.   
  40.  
  41. <html:script language="JavaScript" src="chrome://editor/content/EditorCommands.js"/>
  42. <html:script language="JavaScript" src="chrome://editor/content/EditorCommandsDebug.js"/>
  43. <html:script language="JavaScript" src="chrome://global/content/strres.js"/>
  44. <html:script language="JavaScript" src="chrome://messengercompose/content/MsgComposeCommands.js"/>
  45. <html:script language="JavaScript" src="chrome://messengercompose/content/addressAutoComplete.js"/>
  46.  
  47. <commands id="commands">
  48.     <commandset id="globalEditMenuItems"/>
  49.     <commandset id="selectEditMenuItems"/>
  50.     <commandset id="undoEditMenuItems"/>
  51. </commands>
  52.  
  53. <broadcasterset id="broadcasterset">
  54.     <!-- File Menu -->
  55.     <broadcaster id="cmd_newNavigator"/>
  56.     <broadcaster id="cmd_newMessage"/>
  57.     <broadcaster id="cmd_close" oncommand="CloseWindow()"/>
  58.     <broadcaster id="cmd_attachFile" oncommand="AttachFile()"/>
  59.     <broadcaster id="cmd_selectAddress" oncommand="SelectAddress()"/>
  60.     <broadcaster id="cmd_sendNow" oncommand="SendMessage()"/>
  61.     <broadcaster id="cmd_sendLater" oncommand="SendMessageLater()"/>
  62.     <broadcaster id="cmd_print" oncommand="nsCmd:BrowserPrint"/>
  63.      <broadcaster id="cmd_quit"/>
  64.     <!-- Edit Menu -->
  65.     <broadcaster id="cmd_undo"/>
  66.     <broadcaster id="cmd_redo"/>
  67.     <broadcaster id="cmd_cut"/>
  68.     <broadcaster id="cmd_copy"/>
  69.     <broadcaster id="cmd_paste"/>
  70.     <broadcaster id="cmd_delete"/>
  71.     <broadcaster id="cmd_selectAll"/>
  72.     <broadcaster id="cmd_find" oncommand="nsCmd:ComposeNYI"/>
  73.     <broadcaster id="cmd_findAgain" oncommand="nsCmd:ComposeNYI"/>
  74.     <broadcaster id="cmd_preferences"/>
  75.  
  76.     <broadcaster id="broadcaster_throbber" busy="false"/>
  77. </broadcasterset>
  78.  
  79. <broadcaster id="args" value="editorType=default"/>
  80.  
  81. <!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs -->
  82. <broadcaster id="dialog.start" ready="false"/>
  83. <observes element="dialog.start" attribute="ready" onbroadcast="ComposeStartup()"/>
  84.  
  85. <popupset>
  86.     <popup id="TextColorPopup"/>
  87.     <popup id="BackColorPopup"/>
  88. </popupset>
  89.  
  90. <keyset id="keyset">
  91.     <!-- File Menu -->
  92.     <key id="key_newNavigator"/>
  93.     <key id="key_newMessage"/>
  94.     <key id="key_close"/>
  95.     <key id="key_save" xulkey="true" key="&saveCmd.key;" disabled="true"/>
  96.     <!-- key id="key_attachFile" xulkey="true" key="&attachFileCmd.key;" observes="cmd_attachFile"/ -->
  97.     <!-- key id="key_selectAddresses" xulkey="true" key="&selectAddressCmd.key;" observes="cmd_selectAddress"/ -->
  98.     <!-- key id="key_sendNow" xulkey="true" keycode="&sendNowCmd.keycode;" observes="cmd_sendNow"/ -->
  99.     <!-- key id="key_sendLater" xulkey="true" keycode="&sendLaterCmd.keycode;" shift="true" observes="cmd_sendLater"/ -->
  100.     <key id="key_print" xulkey="true" key="&printCmd.key;" disabled="true" observes="cmd_print"/>
  101.     <key id="key_quit"/>
  102.     <!-- Edit Menu -->
  103.     <key id="key_undo"/>
  104.     <key id="key_redo"/>
  105.     <key id="key_cut"/>
  106.     <key id="key_copy"/>
  107.     <key id="key_paste"/>
  108.     <key id="key_delete"/>
  109.     <key id="key_selectAll"/>
  110.     <key id="key_find" xulkey="true" key="&findCmd.key;" disabled="true" observes="cmd_find"/>
  111.     <key id="key_findAgain" xulkey="true" key="&findAgainCmd.key;" disabled="true" observes="cmd_findAgain"/>
  112.     <key id="key_preferences"/>
  113.     
  114. </keyset>
  115.  
  116. <!--- REMOVE KEYSET UNTIL IT WORKS CORRECTLY ON MAC!
  117. ACTUALLY, EVERY TIME YOU TYPE ANY OF THE KEY DEFINED HERE AFTER WITHOUT ANY OF THE MODIFIERS PRESSED, THE COMMAND IS EXECUTED.
  118.  
  119. <keyset id="defaultKeySet">
  120.     <key id="acmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="a" onkeypress="EditorSelectAll()" />
  121.     <key id="bcmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="b" onkeypress="EditorApplyStyle('b')"/>
  122.     <key id="ccmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="c" onkeypress="EditorCopy()" />
  123.     <key id="fcmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="f" onkeypress="EditorFind()" />
  124.     <key id="gcmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="g" onkeypress="EditorFindNext()" />
  125.     <key id="icmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="i" onkeypress="EditorApplyStyle('i')"/>
  126.     <key id="kcmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="k" onkeypress="CheckSpelling()" />
  127.     <key id="ucmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="u" onkeypress="EditorApplyStyle('u')"/>
  128.     <key id="vcmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="v" onkeypress="EditorPaste()" />
  129.     <key id="xcmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="x" onkeypress="EditorCut()" />
  130.     <key id="ycmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="y" onkeypress="EditorRedo()" />
  131.     <key id="zcmdkey" disabled="false" shift="false" xulkey="true" alt="false" key="z" onkeypress="EditorUndo()" />
  132. </keyset>
  133.  
  134. -->
  135.  
  136. <popupset>
  137.   <popup id="TextColorPopup"/>
  138.   <popup id="BackColorPopup"/>
  139. </popupset>
  140.  
  141. <!-- box id="toolbar" align="vertical" style="width:100%;height:100%" -->
  142.   <menubar>
  143.     <menu id="menu_File">
  144.       <menupopup id="menu_FilePopup">
  145.         <menuitem value="&newMessage.label;" accessKey="&newMessage.accesskey;" key="key_newMessage" observes="cmd_newMessage"/>
  146.         <menu id="menu_New">
  147.           <menupopup id="menu_NewPopup">
  148.             <menuitem id="menu_newNavigator"/>
  149.             <menuitem id="menu_newMessage"/>
  150.             <menuitem id="cmd_newCard"/>
  151.             <menuitem id="menu_newEditor"/>
  152.           </menupopup>
  153.         </menu>
  154.         <menuseparator/>
  155.  
  156.         <menuitem id="menu_close"/>
  157.         <menuitem value="&saveCmd.label;" disabled="true" key="key_save"/>
  158.         <menu value="&saveAsCmd.label;" accessKey="&saveAsCmd.accesskey;">
  159.           <menupopup>
  160.             <menuitem value="&saveAsFileCmd.label;" disabled="true" accessKey="&saveAsFileCmd.accesskey;"/>
  161.             <menuseparator/>
  162.             <menuitem value="&saveAsDraftCmd.label;" accessKey="&saveAsDraftCmd.accesskey;" oncommand="SaveAsDraft()"/>
  163.             <menuitem value="&saveAsTemplateCmd.label;" accessKey="&saveAsTemplateCmd.accesskey;" oncommand="SaveAsTemplate()"/>
  164.           </menupopup>
  165.         </menu>
  166.         <menuseparator/>
  167.  
  168.         <menuitem value="&attachFileCmd.label;" accesskey="&attachFileCmd.accesskey;" observes="cmd_attachFile"/>
  169.         <menuitem value="&attachPageCmd.label;" accesskey="&attachPageCmd.accesskey;" oncommand="AttachPage()"/>
  170.         <!-- the next menu item is TEMPORARY until we figure how to hook up the deleted key in the attachment tree -->
  171.         <menuitem value="&removeLastAttachmentCmd.label;" oncommand="RemoveSelectedAttachment()"/>
  172.         <menuseparator/>
  173.         
  174.         <menuitem value="&sendNowCmd.label;" accessKey="&sendNowCmd.accesskey;" observes="cmd_sendNow"/>
  175.         <menuitem value="&sendLaterCmd.label;" accessKey="&sendLaterCmd.accesskey;" observes="cmd_sendLater"/>
  176.         <menuseparator/>
  177.         <menuitem id="menu_pageSetup" disabled="true"/>
  178.         <menuitem value="&printPreviewCmd.label;" disabled="true" accessKey="&printPreviewCmd.accesskey;" oncommand="nsCmd:BrowserPrintPreview"/>
  179.         <menuitem value="&printCmd.label;" disabled="true" key="key_print" accessKey="&printCmd.accesskey;" observes="cmd_print"/>
  180.         <menuseparator/>
  181.         </menupopup>
  182.     </menu>
  183.     <menu id="menu_Edit">
  184.         <menupopup>
  185.             <menuitem id="menu_undo"/>
  186.             <menuitem id="menu_redo"/>
  187.             <menuseparator/>
  188.             <menuitem id="menu_cut"/>
  189.             <menuitem id="menu_copy"/>
  190.             <menuitem id="menu_paste"/>
  191.             <menuitem value="&pasteAsQuotCmd.label;" disabled="true" accesskey="&pasteAsQuotCmd.accesskey;" oncommand="nsCmd:ComposeNYI"/>
  192.             <menuitem id="menu_delete"/>
  193.             <menuseparator/>
  194.             <menuitem id="menu_selectAll"/>
  195.             <menuseparator/>
  196.             <menuitem value="&findCmd.label;" disabled="true" key="key_find" accesskey="&findCmd.accesskey;" observes="cmd_find"/>
  197.             <menuitem value="&findAgainCmd.label;" disabled="true" key="key_findAgain" accesskey="&findAgainCmd.accesskey;" observes="cmd_findAgain"/>
  198.             <menuseparator/>
  199.             <menuitem value="&EditHtmlCmd.label;" disabled="true" oncommand="nsCmd:ComposeNYI"/>
  200.             <menuseparator/>
  201.             <menuitem id="menu_preferences" oncommand="goPreferences('messengercompose.xul', 'chrome://messengercompose/content/pref-messages.xul')"/>
  202.         </menupopup>
  203.     </menu>
  204.     <menu id="menu_View">
  205.     <menupopup>
  206.             <menu id="menu_Toolbars">
  207.                 <menupopup>
  208.                     <menuitem id="menu_showComposeToolbar"
  209.                               value="&showComposeToolbarCmd.label;"
  210.                               accesskey="&showComposeToolbarCmd.accesskey;"
  211.                               oncommand="goToggleToolbar('composeToolbar', 'menu_showComposeToolbar')"
  212.                               checked="true"/>
  213.                     <menuitem id="menu_showFormatToolbar"
  214.                               value="&showFormatToolbarCmd.label;"
  215.                               accesskey="&showFormatToolbarCmd.accesskey;"
  216.                               oncommand="goToggleToolbar('FormatToolbar', 'menu_showFormatToolbar')"
  217.                               checked="true"/>
  218.                     <menuitem id="menu_showStatusbar"
  219.                               value="&showStatusbarCmd.label;"
  220.                               accesskey="&showStatusbarCmd.accesskey;"
  221.                               oncommand="goToggleToolbar('status-bar', 'menu_showStatusbar')"
  222.                               checked="true" disabled="true"/>
  223.                     <menuitem id="menu_showTaskbar"/>
  224.                 </menupopup>
  225.             </menu>
  226.             <menuitem value="&showParagraphMarksCmd.label;" disabled="true" cmd="nsCmd:ComposeNYI"/>
  227.             <menuseparator/>
  228.             <menuitem value="&pageInfoCmd.label;" disabled="true" accesskey="&pageInfoCmd.accesskey;" cmd="nsCmd:ComposeNYI"/>
  229.             <menuseparator/>
  230.             <menu value="&dcharMenu.label;" oncreate="InitCharsetMenuCheckMark();">
  231.             <menupopup>
  232.             <menuitem id="ISO-8859-1" type="radio" name="charsetGroup" value="&dcharIso1Cmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  233.             <menuitem id="ISO-8859-2" type="radio" name="charsetGroup" value="&dcharIso2Cmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  234.             <menuitem id="ISO-8859-3" type="radio" name="charsetGroup" value="&dcharIso3Cmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  235.             <menuitem id="ISO-8859-4" type="radio" name="charsetGroup" value="&dcharIso4Cmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  236.             <menuitem id="ISO-8859-9" type="radio" name="charsetGroup" value="&dcharIso9Cmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  237.             <menuitem id="ISO-8859-10" type="radio" name="charsetGroup" value="&dcharIso10Cmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  238.             <menuitem id= "ISO-8859-14" type="radio" name="charsetGroup" value="&dcharIso14Cmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  239.             <menuitem id="ISO-8859-15" type="radio" name="charsetGroup" value="&dcharIso15Cmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  240.              <menuseparator />
  241.             <menuitem id="ISO-2022-JP" type="radio" name="charsetGroup" value="&dcharJapanCmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  242.              <menuseparator />
  243.             <menuitem id="BIG5" type="radio" name="charsetGroup" value="&dcharTradChiBigCmd.label;" oncommand="SetDocumentCharacterSet('Big5');"/>
  244.             <menuitem id="GB2312" type="radio" name="charsetGroup" value="&dcharSimpChiGbCmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  245.              <menuseparator />
  246.             <menuitem id="EUC-KR" type="radio" name="charsetGroup" value="&dcharKoreanCmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  247.              <menuseparator />
  248.             <menuitem id="UTF-8" type="radio" name="charsetGroup" value="&dcharUtf8Cmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  249.              <menuseparator />
  250.             <menuitem id="KOI8-R" type="radio" name="charsetGroup" value="&dcharRusCmd.label; " oncommand="SetDocumentCharacterSet(this.id);"/>
  251.             <menuitem id="KOI8-U" type="radio" name="charsetGroup" value="&dcharUkrCmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  252.              <menuseparator />
  253.             <menuitem id="ISO-8859-7" type="radio" name="charsetGroup" value="&dcharIsoGreekCmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  254.              <menuseparator />
  255.             <menuitem id="VISCII" type="radio" name="charsetGroup" value="&dcharVietViCmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  256.              <menuseparator />
  257.             <menuitem id="TIS-620" type="radio" name="charsetGroup" value="&dcharThaiCmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  258.              <menuseparator />
  259.             <menuitem id="ARMSCII-8" type="radio" name="charsetGroup" value="&dcharArmCmd.label;" oncommand="SetDocumentCharacterSet(this.id);"/>
  260.              <menuseparator />
  261.             <menuitem value="&dcharDEFAULT.label;" oncommand="SetDefaultMailSendCharacterSet();"/>
  262.             </menupopup>
  263.         </menu>
  264.     </menupopup>
  265.     </menu>
  266.  
  267.     <!-- entire menus comes from editorOverlay -->
  268.     <menu id="insertMenu"/>
  269.     
  270.     <!-- menu items come from editorOverlay -->
  271.     <menu id="formatMenu" value="&formatMenu.label;" accesskey="&formatmenu.accesskey;">
  272.     <menupopup id="formatMenuPopup">
  273.           <menu id="tableMenu"/>
  274.          <menuseparator/>
  275.       <menuitem id="objectProperties"/>
  276.       <menuitem id="colorsAndBackground"/>
  277.     </menupopup>
  278.     </menu>
  279.     
  280.  
  281.     <menu value="&optionsMenu.label;">
  282.     <menupopup>    
  283.         <menuitem value="&selectAddressCmd.label;" accesskey="&selectAddressCmd.accesskey;" observes="cmd_selectAddress"/>
  284.         <menuitem value=""eOrigCmd.label;" accesskey=""eOrigCmd.accesskey;" disabled="true" oncommand="nsCmd:ComposeQuote"/>
  285.         <menuseparator/>
  286.         
  287.            <menu value="&outputFormatMenu.label;" oncommand="OutputFormatMenuSelect(event.target);">
  288.             <menupopup>
  289.             <menuitem value="&askmeFormatCmd.label;" id="1"/>
  290.             <menuitem value="&plainTextFormatCmd.label;" id="2"/>
  291.             <menuitem value="&htmlFormatCmd.label;" id="3"/>
  292.             <menuitem value="&bothFormatCmd.label;" id="4"/>
  293.             </menupopup>
  294.            </menu>
  295.         <menuitem value="&returnReceiptCmd.label;" oncommand="ReturnReceiptMenuSelect();"/>
  296.         <menu value="&priorityMenu.label;" oncommand="PriorityMenuSelect(event.target);">
  297.             <menupopup>
  298.             <menuitem value="&lowestPriorityCmd.label;" id="lowest"/>
  299.             <menuitem value="&lowPriorityCmd.label;" id="low"/>
  300.             <menuitem value="&normalPriorityCmd.label;" id="normal"/>
  301.             <menuitem value="&highPriorityCmd.label;" id="high"/>
  302.             <menuitem value="&highestPriorityCmd.label;" id="highest"/>
  303.             </menupopup>
  304.            </menu>
  305.  
  306.         <menu value="&fileCarbonCopyCmd.label;" id="fccMenu" datasources="rdf:mailnewsfolders rdf:msgaccountmanager" ref="msgaccounts:/" rdf:ignore="http://home.netscape.com/NC-rdf#MessageChild">
  307.         <menupopup/>
  308.         <template> 
  309.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  310.             <menupopup>
  311.               <menuitem value="[current selection]" disabled="true"/>
  312.               <menuseparator/>
  313.               <menu uri="..."  class="folderMenuItem" value="rdf:http://home.netscape.com/NC-rdf#Name"
  314.                 SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  315.                 BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  316.                 IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  317.                 ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  318.                 <menupopup>
  319.                   <menuitem uri="..." value="&fileHereMenu.label;" 
  320.                 oncommand="MessageFcc(event.target)"
  321.                 SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  322.                 BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  323.                 IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  324.                 ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType" />
  325.                   <menuseparator/>
  326.                 </menupopup>
  327.               </menu>
  328.             </menupopup>
  329.         </rule>
  330.         <rule nc:CanFileMessages="false" nc:ServerType="nntp">
  331.                 <!-- don't show nntp servers in the file and copies menus -->
  332.         </rule>
  333.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  334.             <!-- note, there is no "file here" -->
  335.             <menupopup>
  336.               <menu uri="..."  class="folderMenuItem" value="rdf:http://home.netscape.com/NC-rdf#Name"
  337.                                 SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  338.                                 BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  339.                                 IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  340.                                 ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  341.             <menupopup/>
  342.               </menu>
  343.             </menupopup>
  344.         </rule>
  345.         <rule nc:CanFileMessages="true">
  346.             <menupopup>
  347.             <menuitem uri="..." class="folderMenuItem" value="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="MessageFcc(event.target)" 
  348.                 SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  349.                 BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  350.                 IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  351.                 ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  352.             </menupopup>
  353.           </rule>
  354.         </template>
  355.         </menu>        
  356.  
  357.         <menuitem value="&addSignatureCmd.label;" disabled="true" oncommand=""/>        
  358.         <menuitem value="&attachVCardCmd.label;" disabled="true" accesskey="&attachVCardCmd.accesskey;" oncommand="AttachVCard()"/>        
  359.     </menupopup>
  360.     </menu>
  361.  
  362.     <!-- menu id="debugMenu"/ -->
  363.     <menu id="tasksMenu"/>
  364.     <menu id="menu_Help"/>
  365.     <spring flex="100%"/>
  366.   </menubar>
  367.   <toolbox>
  368.     <toolbar id="composeToolbar" class="standard" persist="collapsed">
  369.         <box id="toolbar_button_box">
  370.              <titledbutton id="button_send" class="button28" align="top" value="&sendButton.label;" onclick="SendMessage()"/>
  371.             <toolbarseparator/>
  372.              <titledbutton id="button_address" class="other28" align="top" value="&addressButton.label;" onclick="SelectAddress()"/>
  373.              <titledbutton id="button_attach" class="other28" align="top" value="&attachButton.label;" onclick="AttachFile()"/>
  374.              <titledbutton id="button_quote" class="other28" align="top" disabled="true" value=""eButton.label;" onclick="QuoteMessage()"/>
  375.              <!--titledbutton id="button_spelling" class="other28" align="top" value="&spellingButton.label;" onclick="Spelling()"/-->
  376.             <toolbarseparator/>
  377.              <titledbutton id="button_save" class="other28" align="top" value="&saveButton.label;" onclick="SaveAsDraft()"/>
  378.              <titledbutton id="button_stop" class="other28" align="top" disabled="true" value="&stopButton.label;" onclick="Stop()"/>
  379.             <spring flex="100%"/>
  380.         </box>
  381.  
  382.         <box id="toolbar_throbber_box" align="vertical">
  383.             <titledbutton id="Throbber" onclick='goClickThrobber("compose.throbber.url")'>
  384.                 <observes element="broadcaster_throbber" attribute="busy"/>
  385.             </titledbutton>
  386.         </box>
  387.     </toolbar>
  388.  
  389.     <toolbar id="MsgHeadersToolbar" persist="collapsed">
  390.         <box align="horizontal" flex="100%">
  391.             <spring style="width:0.5em"/>
  392.             <box align="vertical" flex="75%">
  393.                 <spring style="height:0.5em"/>
  394.                 <box align="horizontal">
  395.                     <html:div>&fromAddr.label;</html:div>
  396.                     <spring style="width:0.5em"/>
  397.                     <html:select id="msgIdentity" flex="100%"/>
  398.                 </box>
  399.                 <spring style="height:0.5em"/>
  400.  
  401.                 <!-- addressing widget -->
  402.                 <box id="addressingWidget"/>
  403.                 <spring style="height:0.5em"/>
  404.                 
  405.                 <box align="horizontal">
  406.                     <html:div>&subject.label;</html:div>
  407.                     <spring style="width:0.5em"/>
  408.                     <html:input id="msgSubject" type="text" flex="100%"
  409.                         onkeyup="SetComposeWindowTitle(event.which);"
  410.                         onkeydown="if (event.which == 9) contentWindow.focus();"
  411.                         />
  412.                 </box>
  413.                 <spring style="height:0.5em"/>
  414.             </box>
  415.             
  416.             <spring style="width:0.5em"/>
  417.             <box align="vertical" flex="25%">
  418.                 <spring style="height:0.5em"/>
  419.                 <box align="vertical" style="height:1em">
  420.                     <html:div flex="100%">&attachments.label;</html:div>
  421.                 </box>
  422.                 <spring style="height:0.5em"/>
  423.                 <box align="vertical" style="height:8.5em; background-color:white; border-top:solid black 1px">
  424.                     <tree id="attachmentBucket" flex="100%" style="width:0px"
  425.                         onkeypress="if (event.which == 8) RemoveSelectedAttachment();">
  426.                         <treecol style="width:100%"/>
  427.  
  428.                         <treechildren id="bucketBody">
  429.                         </treechildren>
  430.                     </tree>
  431.                 </box>
  432.                 <spring style="height:0.5em"/>
  433.             </box>
  434.             <spring style="width:0.5em"/>
  435.         </box>
  436.     </toolbar>
  437.  
  438.     <!-- These toolbar items get filled out from the editorOverlay -->
  439.     <toolbar id="FormatToolbar" persist="collapsed">
  440.       <html:div>
  441.         <!-- items are filled out from editorOverlay -->
  442.         <html:select id="ParagraphSelect"/>
  443.         <html:select id="FontFaceSelect"/>
  444.       </html:div>
  445.  
  446.       <html:div id="ColorButtons"/>
  447.       
  448.       <titledbutton id="DecreaseFontSizeButton"/>
  449.       <titledbutton id="IncreaseFontSizeButton"/>
  450.       <titledbutton id="boldButton"/>
  451.       <titledbutton id="italicButton"/>
  452.       <titledbutton id="underlineButton"/>
  453.       <titledbutton id="ulButton"/>
  454.       <titledbutton id="olButton"/>
  455.       <titledbutton id="outdentButton"/>
  456.       <titledbutton id="indentButton"/>
  457.  
  458.       <menu>
  459.         <titledbutton id="AlignPopupButton"/>
  460.         <menupopup id="AlignmentPopup"/>
  461.       </menu>
  462.  
  463.       <menu>
  464.         <titledbutton id="InsertPopupButton"/>
  465.         <menupopup id="InsertPopup"/>
  466.       </menu>
  467.       <spring flex="100%"/>
  468.     </toolbar>
  469. </toolbox>
  470.  
  471.     <!-- The main mail three pane frame -->
  472.     <html:iframe type="content-primary" id="content-frame" src="about:blank" name="browser.message.body" flex="100%"/>
  473.  
  474.     <box id="status-bar">
  475.         <box align="vertical" style="width:100px">
  476.             <spring flex="100%"/>
  477.             <progressmeter mode="normal" value="0">
  478.             </progressmeter>
  479.             <spring flex="100%"/>
  480.         </box>
  481.         <titledbutton id="statusText" align="right" flex="100%" value="Document: Done"/>
  482.     </box>
  483.  
  484. <!-- /box -->
  485.     <toolbar id="taskbar"/>
  486. </window>
  487.  
  488.